import request from '@/utils/http'
export const userLoginAPI = (uid, password) => {
    return request({
        url: '/userLogin',
        method: 'post',
        data: {
            uid,
            password
        }
    })
}
export const userRegisterAPI = (uid, uname, password) => {
    return request({
        url: '/userRegister',
        method: 'post',
        data: {
            uid,
            uname,
            password
        }
    })
}
export const updateUserUnameAPI = (uid, uname) => {
    return request({
        url: '/updateUserUname',
        method: 'post',
        data: {
            uid,
            uname
        }
    })
}
export const updateUserPwdAPI = (uid, oldpwd, newpwd) => {
    return request({
        url: '/updateUserPassword',
        method: 'post',
        data: {
            uid,
            oldpwd,
            newpwd
        }
    })
}
export const updateUserTelephoneAPI = (uid, telephone) => {
    return request({
        url: '/updateUserTelephone',
        method: 'post',
        data: {
            uid,
            telephone
        }
    })
}
export const updateUserAddressAPI = (uid, address) => {
    return request({
        url: '/updateUserAddress',
        method: 'post',
        data: {
            uid,
            address
        }
    })
}